<%--
  Created by IntelliJ IDEA.
  User: 86175
  Date: 2021/8/2
  Time: 14:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>显示所有账户</title>
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <h2>所有账户列表</h2>
    <table class="table table-bordered text-center">
        <tr class="bg-primary">
            <td>账户名</td>
            <td>密码</td>
            <td>账号</td>
            <td>开户行</td>
            <td>删除</td>
            <td>修改</td>
        </tr>
<%--    JSTL标签，消除JSP上的Java代码：此处是遍历集合acList    --%>
<%--    同时用到EL表达式:自动接收servlet传递来的alist    --%>
        <c:forEach items="${alist}" var="account">
            <tr>
                <td>${account.accountName}</td>
                <td>${account.accountPsw}</td>
                <td>${account.accountNo}</td>
                <td>${account.bank}</td>
<%--                <td><a class="btn-warning" href="DeleteAccountServlet"> 删除</a></td>--%>
                <td ><a class="btn-warning" href="UpdateAccountServlet">修改 </a></td>
            </tr>

        </c:forEach>

    </table>
</div>
</body>
</html>
